﻿<phone:PhoneApplicationPage 
    x:Class="OnlineVideos.QuizResultReview"
   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="800" d:DesignWidth="480"
    shell:SystemTray.IsVisible="False" Loaded="PhoneApplicationPage_Loaded" BackKeyPress="PhoneApplicationPage_BackKeyPress">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="{StaticResource bipivot}" Width="480">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>

        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel Orientation="Horizontal" Margin="0,10,0,0" Grid.Row="0">
            <Image Style="{StaticResource DetailPagePivotTitleImage}" x:Name="imgTitle" MouseLeftButtonDown="imgTitle_MouseLeftButtonDown" />
            <TextBlock x:Name="tblkVideosTitle" Style="{StaticResource DetailPagePivotTitle}"/>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="Reviewgrid" Grid.Row="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="50"/>
                <RowDefinition Height="465"/>
                <RowDefinition Height="60"/>
                <RowDefinition Height="100"/>
                <RowDefinition Height="80"/>
            </Grid.RowDefinitions>
            <TextBlock x:Name="PageTitle" Text="Review Answers" Foreground="White" HorizontalAlignment="Left" Height="35" Margin="15,0,0,2" Grid.Row="0"  FontSize="30" Style="{StaticResource PhoneTextTitle1Style}"/>
            <ScrollViewer VerticalScrollBarVisibility="Auto" Grid.Row="1" >
                <StackPanel Orientation="Vertical" x:Name="spQuizresult"  Width="470" Grid.Row="1" Margin="10,0,0,0">
                    <StackPanel Orientation="Vertical" >
                        <StackPanel Orientation="Horizontal" Width="440" Margin="15,0,0,15">
                            <TextBlock TextWrapping="Wrap"  Text="{Binding QuestionID}" FontSize="35" x:Name="txtquestno" Foreground="White"></TextBlock>
                            <TextBlock   Text="." FontSize="35" Foreground="White"></TextBlock>
                            <TextBlock TextWrapping="Wrap" Width="380"  Text="{Binding Question}" FontSize="26" Margin="5,10,10,10" Foreground="White"></TextBlock>
                        </StackPanel>
                        <Image x:Name="imgquest" Source="{Binding ImgQuestion}" Visibility="{Binding ImgQuestion, TargetNullValue=Collapsed}" Height="150" Width="150"></Image>
                    </StackPanel>
                    <TextBlock x:Name="txtoption1" Text="{Binding Option1}" Style="{StaticResource QuizReviewOptions}"></TextBlock>
                    <TextBlock x:Name="txtoption2" Text="{Binding Option2}" Style="{StaticResource QuizReviewOptions}"></TextBlock>
                    <TextBlock x:Name="txtoption3" Text="{Binding Option3}" Style="{StaticResource QuizReviewOptions}"></TextBlock>
                    <TextBlock x:Name="txtoption4" Text="{Binding Option4}" Style="{StaticResource QuizReviewOptions}"></TextBlock>
                </StackPanel>
            </ScrollViewer>

            <StackPanel Grid.Row="2"  Orientation="Horizontal" Margin="15,0,0,0" Visibility="Visible" x:Name="stkcorrectans">
                <Grid HorizontalAlignment="Right" Width="200" Margin="10,0,0,10" x:Name="correctansgrid">
                    <TextBlock  TextWrapping="Wrap" Margin="10,0,0,0" x:Name="txtcorrectans" FontSize="28" ></TextBlock>
                </Grid>
                <Grid Margin="15,0,30,10" Width="200" HorizontalAlignment="Left" x:Name="useransgrid">
                    <TextBlock  TextWrapping="Wrap"  x:Name="txtuserans" FontSize="28" Margin="10,0,30,0"></TextBlock>
                </Grid>
            </StackPanel>

            <StackPanel Orientation="Horizontal" Grid.Row="3" Width="480">
                <Image Source="/Images/Previous.png"  HorizontalAlignment="Left" Visibility="Collapsed" Margin="10,0,0,0" x:Name="imgprevious" Height="70" Width="150" MouseLeftButtonDown="Imgprvs_MouseLeftButtonDown"></Image>
                <Image Source="/Images/Exits.png"  HorizontalAlignment="Left"  Margin="80,0,0,0" x:Name="imgexit" Height="70" Width="150" MouseLeftButtonDown="imgexit_MouseLeftButtonDown"></Image>
                <Image Source="/Images/Next.png"  HorizontalAlignment="Right" Margin="80,0,0,0" x:Name="imgnext" Height="70" Width="150" MouseLeftButtonDown="Imgnxt_MouseLeftButtonDown"></Image>
            </StackPanel>
            <StackPanel Name="adstackpl" Grid.Row="4" Orientation="Vertical" >
            </StackPanel>
        </Grid>
    </Grid>

    <!--Sample code showing usage of ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>